package com.ruoyi.common.base.enums;


import com.ruoyi.common.base.vo.ComKeyValueVo;

import java.util.ArrayList;
import java.util.List;

/**
 * 裂隙发育情况枚举
 *
 * @author gu
 */
public enum FissureDevelopmentEnum {
    HORIZONTALCRACK("1", "水平裂隙"),//200
    VERTICALCRACK("2", "垂直裂隙"),//100
    OBLIQUECRACK("3", "斜交裂隙"),//300
    OBLIQUEFRACTURE("4", "斜裂隙"),//500
    BRITTLEFRACTURE("5", "脆性断裂");
    private final String code;
    private final String type;

    FissureDevelopmentEnum(String code, String type) {
        this.code = code;
        this.type = type;
    }

    public static List<ComKeyValueVo> getArmTypeEnumList() {
        ArrayList<ComKeyValueVo> armTypeEnumList = new ArrayList<>();
        for (FissureDevelopmentEnum armTypeEnum : FissureDevelopmentEnum.values()) {
            ComKeyValueVo armTypeEnumVo = new ComKeyValueVo();
            armTypeEnumVo.setKey(armTypeEnum.code);
            armTypeEnumVo.setValue(armTypeEnum.type);
            armTypeEnumList.add(armTypeEnumVo);
        }
        return armTypeEnumList;
    }

    public String getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
